package com.jvup.gameshow.model.viewModel;

import androidx.fragment.app.Fragment;
import androidx.lifecycle.MutableLiveData;

import com.jvup.gameshow.BR;
import com.jvup.common.support.base.IViewModel;
import com.qire.antsbinder.viewModel.annotation.ViewModelProperty;
import com.qire.antsbinder.viewModel.annotation.ViewModelProperty.Type;

public interface IHomeViewModel extends IViewModel {

    int variableId = BR.homeViewModel;

    @ViewModelProperty(name={"homeFragment","mallFragment","orderFragment","userFragment"},type = Type.SET)
    void loadFragment(Fragment homeFragment,Fragment mallFragment,Fragment orderFragment,Fragment userFragment);

    @ViewModelProperty(name = "homeFragment")
    MutableLiveData<Fragment> getHomeFragment();

    @ViewModelProperty(name = "mallFragment")
    MutableLiveData<Fragment> getMallFragment();

    @ViewModelProperty(name = "orderFragment")
    MutableLiveData<Fragment> getOrderFragment();

    @ViewModelProperty(name = "userFragment")
    MutableLiveData<Fragment> getUserFragment();

}
